﻿#ifndef XRTCCLIENT_MEDIA_SOURCE_CAM_SOURCE_H_
#define XRTCCLIENT_MEDIA_SOURCE_CAM_SOURCE_H_

#include <pc/video_track_source.h>

namespace xrtc {

class CamSource : public webrtc::VideoTrackSource {
public:
    static rtc::scoped_refptr<CamSource> Create(
        rtc::VideoSourceInterface<webrtc::VideoFrame>* vcm_capturer);

protected:
    CamSource(rtc::VideoSourceInterface<webrtc::VideoFrame>* vcm_capturer);

private:
    rtc::VideoSourceInterface<webrtc::VideoFrame>* source() override;

private:
    rtc::VideoSourceInterface<webrtc::VideoFrame>* vcm_capturer_;
};

} // namespace xrtc

#endif // XRTCCLIENT_MEDIA_SOURCE_CAM_SOURCE_H_